a = document.getElementById('comments');
if (a) {
   b = a.getElementsByTagName('p');
	for (i = 0; i < b.length; i++) {
		if (b.item(i).getAttribute('class') == 'comment-content') {
			_str = b.item(i).innerHTML;
			_str = replaceneechal(_str);
			b.item(i).innerHTML = _str;
		}
	}
}else{
	c = document.getElementById('comment-holder');
	if (c) {
	d = c.getElementsByTagName('p');
		for (i = 0; i < d.length; i++) {
			if (d.item(i).getAttribute('class') == 'comment-content') {
			_str = d.innerHTML;
			_str = replaceneechal(_str);
			d.innerHTML = _str;
		}
		}
	}
}

function replaceneechal(_str) {
    _str = _str.replace(/\[img\]/gi, '<img src=\'');
    _str = _str.replace(/\[im\#\]/gi, '<img width=\'100%\' src=\'');
    _str = _str.replace(/\[\/img\]/gi, '\' class=\'cmimage\'/>');
	return _str;
};